import javax.swing.*;
import java.awt.*;

/**
 * Created by Scott Tiger.
 * User: tomaszsocha
 * Date: 2010-05-06
 * Time: 15:20:22
 */
class DrawingArea extends JPanel {
    private int mOffset;

    public DrawingArea() {
        setBackground(Color.white);
    }

    public void setOffset(int offset) {
        mOffset = offset;
    }

    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        g.setFont(new Font("Helvetica", Font.PLAIN, 24));
        g.setColor(Color.green);
        g.drawString("An Applet or an Application?", 10+mOffset, 50);
        g.drawString("That is the question.", 10+mOffset, 100);
    }
} 
